package com.jia.train.global.exception;

import com.jia.train.global.enums.BusinessEnum;

public class BusinessException extends RuntimeException {

    public BusinessEnum businessEnum;

    public BusinessException(BusinessEnum businessEnum) {
        this.businessEnum = businessEnum;
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessEnum getBusinessEnum() {
        return businessEnum;
    }

    @Override
    public Throwable fillInStackTrace() {
        return this;
    }
}

